﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BitcoinLibrary
{
    public class InventoryItem
    {
        public enum Type
        {
            Error,
            Transaction,
            Block
        }

        public readonly Type type;
        public readonly byte[] hash;

        public InventoryItem(Type type, byte[] hash)
        {
            this.type = type;
            this.hash = hash;
        }

        public override string ToString()
        {
            return type.ToString() + ": " + Utils.bytesToHexString(hash);
        }
    }
}
